package com.qcby.front.service;

import com.qcby.framwork.utils.ResponseResult;
import com.qcby.front.form.AddArticleForm;
import com.qcby.front.form.ArticleForm;
import com.qcby.front.model.SgArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qcby.front.vo.ArticleVo;
import com.qcby.front.vo.PageVo;
/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author admin
 * @since 2024-09-01
 */
public interface SgArticleService extends IService<SgArticle> {

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);
    ResponseResult hotArticleList();
    ResponseResult getArticleDetail(Long id);
    ResponseResult updateViewCount(Long id);
    ResponseResult add(AddArticleForm addArticleForm);

    PageVo selectArticlePage(SgArticle article, Integer pageNum, Integer pageSize);

    ArticleVo getInfo(Long id);

    void edit(ArticleForm articleForm);

}
